﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TemplateWizard;

namespace HG.INF.BizTalk.SolutionWizard
{
    public class ProjectWizard:IWizard
    {

        
        public void BeforeOpeningFile(EnvDTE.ProjectItem projectItem)
        {
           
        }

        public void ProjectFinishedGenerating(EnvDTE.Project project)
        {
           
        }

        public void ProjectItemFinishedGenerating(EnvDTE.ProjectItem projectItem)
        {
           
        }

        public void RunFinished()
        {
           
        }

        public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
        {
            var solutionDictionary = SolutionWizard.solutionDictionary;
            replacementsDictionary.Add("$integrationcode$", solutionDictionary["integrationcode"]);
            replacementsDictionary.Add("$integrationname$", solutionDictionary["integrationname"]);
        }

        public bool ShouldAddProjectItem(string filePath)
        {
            return true;
        }
    }
}
